<?php
namespace app\admin\validate;

use think\Validate;
class Category extends Validate{
	protected $rule = [
		'pid' => 'require',
		'name' => 'require',
	];

	protected $message = [
		'pid' => '父级分类必须',
		'name' => '商品分类名必须',
	];

	protected $scene = [
		'send_code' => ['phone_number'],
		'login' => ['phone_number','code','type'],
		'update_user' => ['username','sex'],
	];
}